package com.goods.business.service;

import com.goods.common.error.BusinessException;
import com.goods.common.response.ResponseBean;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import com.goods.common.vo.business.ProductCategoryVO;
import com.goods.common.vo.system.PageVO;

import java.util.List;

public interface ProductCategoryService {
    //加载分类数据
    PageVO<ProductCategoryTreeNodeVO> categoryTree(Integer pageNum, Integer pageSize);

    //获取父类分级数据
    List<ProductCategoryTreeNodeVO> getParentCategoryTree();
    //添加
    ResponseBean add(ProductCategoryVO productCategoryVO);
    //根据ID查询分类数据
    ProductCategoryVO edit(Long id);

    //修改
    void update(Long id, ProductCategoryVO productCategoryVO);


    void delete(Long id) throws BusinessException;
}
